
<div class='fui-page fui-page-current'>
    <div class="fui-header">
		<div class="fui-header-left">
			<a class="back" ng-click="goback()"></a>
		</div>
		<div class="title">倍财金充值</div> 
		<div class="fui-header-right">&nbsp;</div>
    </div>
    <div class="fui-content">
		<div class='fui-cell-group'>
			<div class='fui-cell'>
				<div class='fui-cell-label'>当前倍财金</div>
				<div class='fui-cell-info c000'>￥{{pagedata.item.baofee}}</div>
			</div>
			<div class='fui-cell'>
				<div class='fui-cell-label'>充值倍财金</div>
				<div class="fui-cell-info c000" style="display: -webkit-box;display: -webkit-flex;display: -ms-flexbox;display: flex;-webkit-box-align: center;-webkit-align-items: center;-ms-flex-align: center;align-items: center;">￥ <input class='fui-input' placeholder="输入充值金额" id='money' ng-model="pagedata.item.money"></div>
			</div>
		</div>
		<a href="javascript:;" class='btn btn-success block' style="line-height: 2.6;" ng-click="pagedata.recharge()">确认充值</a>
</div>
<div ng-include="sys_html('common/pluginnav',true)"></div>
<script>
scope.pagedata.recharge=function(){
	scope.post_json('recharge',scope.pagedata.item,function(pay_id){
		console.log('pay_id');console.log(pay_id);
		require(['tool'],function(tool){
			tool.pay(pay_id,function(res){
				console.log('收到支付结果！');
				if(res.type=='success'){
					scope.message('充值成功！','','goback');
				}else{
					scope.message('充值失败！'+res.message,'','goback');
				}
			});
		});
	});
}
</script>